package com.ysx.oa.clazz.dao;

import com.ysx.oa.clazz.bean.ClazzBean;
import com.ysx.oa.user.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

@Mapper
@Repository
public interface ClazzDao extends BaseMapper<ClazzBean>{



    Integer updateByClazzId(@Param("clazzBean") ClazzBean clazzBean);
    /*
     * 方法描述: 知clazzId 查学生信息  List<UserBean>
     * @author: 李伟伟
     * @date: 2021/11/22 4:32
     * @params: [studentId]4
     * @returns:java.util.List<com.ysx.oa.clazz.bean.ClazzBean>
     */
    List<UserBean> findStudentMassageByClazzId(Integer id);

    /* 通过班级ID得到老师(ID name 工号)等信息  List<UserBean>
     * 方法描述:
     * @author: 李伟伟
     * @date: 2021/11/22 23:03
     * @params: [id]
     * @returns:java.util.List<com.ysx.oa.user.bean.UserBean>
     */
    List<UserBean> findTeacherMassageByClazzId(Integer id);


    /* 
     * 方法描述:
     * @author: 李伟伟
     * @date: 2021/11/24 17:56
     * @params: [null]
     * @returns:java.util.List<com.ysx.oa.clazz.bean.ClazzBean>
     */
    List<ClazzBean> findAllClazz();






}
